package com.norbitltd.guavaleaves.java.text;

import java.text.Bidi;

import com.google.common.base.Predicate;

public class BidiPredicates {
	
	public static Predicate<Bidi> isMixed() {
		return new Predicate<Bidi>() {
			public boolean apply(Bidi input) {
				return input.isMixed();
			}
		};
	}

	public static Predicate<Bidi> baseIsLeftToRight() {
		return new Predicate<Bidi>() {
			public boolean apply(Bidi input) {
				return input.baseIsLeftToRight();
			}
		};
	}

	public static Predicate<Bidi> isLeftToRight() {
		return new Predicate<Bidi>() {
			public boolean apply(Bidi input) {
				return input.isLeftToRight();
			}
		};
	}

	public static Predicate<Bidi> isRightToLeft() {
		return new Predicate<Bidi>() {
			public boolean apply(Bidi input) {
				return input.isRightToLeft();
			}
		};
	}


}
